package net.xju.service.impl;

import net.xju.dao.AdminDao;
import net.xju.entity.Admin;
import net.xju.service.AdminService;

public class AdminServiceImpl implements AdminService {
    private AdminDao adminDao = new AdminDao();

    @Override
    public Admin login(String username, String password) {
        return adminDao.login(username, password);
    }

    @Override
    public boolean update(Admin admin) {
        return adminDao.update(admin);
    }
}